package com.ruoyi.resource.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作品对象 res_opus
 * 
 * @author ruoyi
 * @date 2021-12-20
 */
public class ResOpus extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** Id */
    private Long id;

    /** 用户Id */
    private Long userid;

    private String avatar;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    private String email;

    /** 当前用户Id，查询喜欢 */
    private Long likeUserid;

    public Long getLikeUserid() {
        return likeUserid;
    }

    public void setLikeUserid(Long likeUserid) {
        this.likeUserid = likeUserid;
    }

    /** 描述 */
    @Excel(name = "描述")
    private String describe;

    /** 喜欢量 */
    private Long likenum;

    /** 喜欢量 */
    private Long likeid;

    public Long getLikeid() {
        return likeid;
    }

    public void setLikeid(Long likeid) {
        this.likeid = likeid;
    }

    /** 浏览量 */
    private Long viewnum;

    /** 分享量 */
    private Long sharenum;

    /** 下载量 */
    private Long downloadnum;

    /** 拍摄城市 */
    @Excel(name = "拍摄城市")
    private String province;

    /** 发布地点 */
    @Excel(name = "发布地点")
    private String place;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date starttime;

    /** 使用设备 */
    @Excel(name = "使用设备")
    private String equipment;

    /** 是否授权 */
    @Excel(name = "是否授权")
    private String authorise;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 类型 */
    @Excel(name = "类型")
    private String classify;

    /** 标签 */
    private String label;

    private String createby;

    private String photos;

    /** 排序方式 */
    private String sortOrder;

    /** 是否为好友 */
    private String isfriend;

    public String getIsfriend() {
        return isfriend;
    }

    public void setIsfriend(String isfriend) {
        this.isfriend = isfriend;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getPhotos() {
        return photos;
    }

    public void setPhotos(String photos) {
        this.photos = photos;
    }

    public String getCreateby() {
        return createby;
    }

    public void setCreateby(String createby) {
        this.createby = createby;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setDescribe(String describe) 
    {
        this.describe = describe;
    }

    public String getDescribe() 
    {
        return describe;
    }
    public void setLikenum(Long likenum) 
    {
        this.likenum = likenum;
    }

    public Long getLikenum() 
    {
        return likenum;
    }
    public void setViewnum(Long viewnum) 
    {
        this.viewnum = viewnum;
    }

    public Long getViewnum() 
    {
        return viewnum;
    }
    public void setSharenum(Long sharenum) 
    {
        this.sharenum = sharenum;
    }

    public Long getSharenum() 
    {
        return sharenum;
    }
    public void setDownloadnum(Long downloadnum) 
    {
        this.downloadnum = downloadnum;
    }

    public Long getDownloadnum() 
    {
        return downloadnum;
    }
    public void setPlace(String place) 
    {
        this.place = place;
    }

    public String getPlace() 
    {
        return place;
    }
    public void setStarttime(Date starttime) 
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
    public void setEquipment(String equipment) 
    {
        this.equipment = equipment;
    }

    public String getEquipment() 
    {
        return equipment;
    }
    public void setAuthorise(String authorise) 
    {
        this.authorise = authorise;
    }

    public String getAuthorise() 
    {
        return authorise;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setClassify(String classify) 
    {
        this.classify = classify;
    }

    public String getClassify() 
    {
        return classify;
    }
    public void setLabel(String label) 
    {
        this.label = label;
    }

    public String getLabel() 
    {
        return label;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userid", getUserid())
            .append("describe", getDescribe())
            .append("likenum", getLikenum())
            .append("viewnum", getViewnum())
            .append("sharenum", getSharenum())
            .append("downloadnum", getDownloadnum())
            .append("place", getPlace())
            .append("starttime", getStarttime())
            .append("equipment", getEquipment())
            .append("authorise", getAuthorise())
            .append("title", getTitle())
            .append("classify", getClassify())
            .append("label", getLabel())
            .append("createby", getCreateby())
            .toString();
    }
}
